import {request} from '../request'



export const get_newscountry = () =>{
    return request({
        url:'/article/country/major'
    })
}

export const get_country_news = (country,page) => {
    return request({
        url:`/article/country/${country}/${page}/15`
    })
}

export const get_othercountry_news = (countries,page) => {
    const countries_string = countries.join(',')
    console.log(countries_string);
    return request({
        url:`/article/countries/${page}/15`,
        method :'get',
        params:{
            in:false,
            countries:countries_string
        }

    })
}